package View;

import Control.funtion;
import Model.User;

import java.io.IOException;

public class SecondMenuStaff implements SecondMenu{

    @Override
    public void differentPage() {
        System.out.println("4-查看所属园区信息");
        System.out.println("5-修改所属园区信息");
        System.out.println("6-退出");
        System.out.println("请选择：");
    }

    //用于操作动物饲养员二级登录页面
    public  void staffOperate(User u) throws IOException {
        while(true) {
            int num = SecondMenu.Option();
            switch (num) {
                case 1:
                    System.out.println("1-查询个人信息");
                    System.out.println(u);
                    break;
                case 2:
                    System.out.println("2-修改个人信息");
                    System.out.println("");
                    funtion.change(u);
                    break;
                case 3:
                    System.out.println("3-查看园区信息");
                    break;
                case 4:
                    System.out.println("4-查看所属园区信息");
                    System.exit(0);
                case 5:
                    System.out.println("5-修改所属园区信息");
                    break;
                case 6:
                    System.out.println("6-退出");
                    System.exit(0);
                default:
                    System.out.println("输入错误！");
                    System.out.println("请重新输入：");
                    break;
            }
        }
    }
}
